#!/bin/sh

# FHS compat
mkdir -pv /usr
ln -sv ${GUIX_ENVIRONMENT}/bin /usr/bin
ln -sv ${GUIX_ENVIRONMENT}/sbin /usr/sbin

# SSL
ln -sv ${GUIX_ENVIRONMENT}/etc/ssl /etc/ssl
export SSL_CERT_DIR="${GUIX_ENVIRONMENT}/etc/ssl/certs"
export SSL_CERT_FILE="${GUIX_ENVIRONMENT}/etc/ssl/certs/ca-certificates.crt"
export GIT_SSL_CAINFO="${SSL_CERT_FILE}"
export CURL_CA_BUNDLE="${GUIX_ENVIRONMENT}/etc/ssl/certs/ca-certificates.crt"

# locale
export GUIX_LOCPATH="${GUIX_ENVIRONMENT}/lib/locale"

# PS1
export PS1="[buildroot-env] ${PS1}"

exec bash
